import request from '@/utils/request'

let onSelfApi = {
  // 获取待报价列表
  getList(query) {
    return request({
      url: '/account/backlist/list?pageNum='+query.pageNum+'&pageSize='+query.pageSize+'&type='+query.type+'&des='+query.des,
      method: 'get'
    })
  },
  // 获取已报价列表
  getQuotationList(query) {
    return request({
      url: '/account/quotation/list?pageNum='+query.pageNum+'&pageSize='+query.pageSize+'&type='+query.type+'&des='+query.des,
      method: 'get'
    })
  },
  // 客服端列表
  krecycleList(query) {
    return request({
      url: '/account/krecycle/list?pageNum='+query.pageNum+'&pageSize='+query.pageSize+'&status='+query.status+'&type='+query.type+'&des='+query.des,
      method: 'get'
    })
  },
   // 客服端编辑
   krecycleEdit(data) {
    return request({
      url: '/account/krecycle',
      method: 'put',
      data
    })
  },


  // /account/backlist/{id}  查看手机号和账号

  getPhone(id) {
    return request({
      url: `/account/backlist/${id}`,
      method: 'get'
    })
  },
  //提交报价
  quotation(data) {
    return request({
      url: '/account/quotation',
      method: 'post',
      data
    })
  },


}
export default onSelfApi

